#!/bin/bash
sleep 5
/bin/mount -t auto -o rw,users,uid=1000,gid=1000 /dev/sdb1 /media/flash
sync
/usr/bin/zip -j /media/flash/log-`date +%Y%m%d_%H%M%S`.zip /var/log/sys* /home/teamplay/.xsession-errors /home/teamplay/game*.log /home/teamplay/Player*.log
#cp -R /home/teamplay/game/InnerForcedEntry /media/flash/
#cp -R /home/teamplay/game/OuterForcedEntry /media/flash/
sync